#pragma once

#include <QtCore/qglobal.h>

#include "myInterface.h"
#include <QObject>
#include <QtPlugin>


#ifndef BUILD_STATIC
# if defined(MYPLUGIN_LIB)
#  define MYPLUGIN_EXPORT Q_DECL_EXPORT
# else
#  define MYPLUGIN_EXPORT Q_DECL_IMPORT
# endif
#else
# define MYPLUGIN_EXPORT
#endif


class MYPLUGIN_EXPORT myPlugin : public QObject, EchoInterface
{
    Q_OBJECT
        Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Examples.EchoInterface")
        Q_INTERFACES(EchoInterface)
public:
    myPlugin();
    QString echo(const QString& message) override;
};
